package com.magenta.gis.lira;

import java.util.Properties;

class DataSourceDescriptor {
	
	//BASIC SETTINGS
	private final String jndiName;
	private final String connectionUrl;
	private final String driverClass;
	private final String userName;
	private final String password;
	private final Properties configProperties;
	//TODO: ADD POOL SETTINGS
	//TODO: VALIDATOR AND CHECK CONNECTION SETTINS
	
	public DataSourceDescriptor(String jndiName, String connectionUrl,
			String driverClass, String userName, String password,
			Properties configProperties) {
		this.jndiName = jndiName;
		this.connectionUrl = connectionUrl;
		this.driverClass = driverClass;
		this.userName = userName;
		this.password = password;
		this.configProperties = configProperties;
	}

	public String getJndiName() {
		return jndiName;
	}

	public String getConnectionUrl() {
		return connectionUrl;
	}

	public String getDriverClass() {
		return driverClass;
	}

	public String getUserName() {
		return userName;
	}

	public String getPassword() {
		return password;
	}

	public Properties getConfigProperties() {
		return configProperties;
	}
	
}
